<template>
	<view class="commonTitle">
		<view class="title" :style="{ fontSize: titleFontSize }">{{ props.title }}</view>
		<view class="right" @click="emits('moreHandle')" v-if="!isShow">
			更多
			<u-icon name="arrow-right" color="#a6a9af" size="14"></u-icon>
		</view>
	</view>
</template>

<script setup lang="ts">
const props = defineProps<{ title: string; isShow?: boolean; titleFontSize?: string }>();
const emits = defineEmits<{ (e: 'moreHandle'): void }>();
</script>

<style lang="less" scoped>
.commonTitle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32rpx;
	margin-top: 40rpx;
	.title {
		font-size: 36rpx;
		font-weight: 600;
		color: #1e1e1e;
	}
	.right {
		display: flex;
		align-items: center;
		font-size: 24rpx;
		color: #a6a9af;
	}
}
</style>
